Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Admetan | Forest plot formatting

    Hello,

    I have a series of forest plots, which I need to edit further.

    An extract of the code for one of the graphs (thanks to David Fisher) is:

    ----------
    use dataset_children.dta, clear

    label variable morphology_group "Morphology"

    gsort +midYear +ageH

    admetan PE LCI UCI if morphology_group>=31 & morphology_group<=32, study(author) ///
    sortby(midYear) by(morphology_group) ///
    rcols(country estimator_new midYear age_r) ///
    nohet nooverall nosubgroup saving(mydata, replace)

    use mydata, clear

    replace _LABELS = `"{bf:"' + _LABELS + `"}"' if _USE==0

    label variable _ES "%"
    label variable _LCI "LCI"
    label variable _UCI "UCI"

    format %-20s _LABELS
    format _ES %2.0f

    forestplot, lcols(country) rcols(_ES midYear estimator_new age_r) ///
    nostats nowt nobox nulloff leftjustify astext(70) xlabel(0 30 60 90) spacing(4) aspect(1) ///
    pointopts(msymbol(t)msize(vsmall)) ciopts(lwidth(vvthin))
    ----------

    I would like to:
    1- indent slightly study names (but not the subgroup name in bold);
    2- add a grid at the 0,30,60,90 points (possibly separated within each subgroup);
    3- right-align the last column on the right;
    4- suppress the first column heading on the left.

    With the graph editor I was able to add the grid, but I could not find the way to resolve the other points.

    Thank you in advance for your reply.

    Fabio
Working...
X